#
#	Apple Macintosh Developer Technical Support
#
#	MultiFinder-Aware Simple TextEdit Sample Application
#
#	OOPTESample
#
#	OOPTESample.make	-	Make Source
#
#	Copyright © 1988, 1989 Apple Computer, Inc.
#	All rights reserved.
#
#	Version:		
#					1.00					04/89
#
#	Components:     
#					BuildOOPTESample		April 1, 1989
#					MOOPTESample.p			April 1, 1989
#					OOPTESample.make		April 1, 1989
#					TECommon.h				April 1, 1989
#					TESampleGlue.a			April 1, 1989
#					TESample.r				April 1, 1989
#					UApplication.p			April 1, 1989
#					UApplication.inc1.p		April 1, 1989
#					UDocument.p				April 1, 1989
#					UDocument.inc1.p		April 1, 1989
#					UTEDocument.p			April 1, 1989
#					UTEDocument.inc1.p		April 1, 1989
#					UTESample.p				April 1, 1989
#					UTESample.inc1.p		April 1, 1989
#

# NOTE: This make script should be called from 'BuildOOPTESample'. It depends
# on some variables declared there.

kSignature = 'MOOT'

# turn off SADE symbols. To turn symbols on, add '-sym on' after the
# equals sign. DON'T use '-sym off' if you want to use TML Pascal; it
# doesn't recognize it.
SymOpts =

# Pascal options
PasOpts = {SymOpts}

# Linker optins
LinkOpts = {SymOpts}

Objs =	¶
	"{ObjFolder}"UApplication.p.o ¶
	"{ObjFolder}"UDocument.p.o ¶
	"{ObjFolder}"UTEDocument.p.o ¶
	"{ObjFolder}"UTESample.p.o ¶
	"{ObjFolder}"TESampleGlue.a.o ¶
	"{ObjFolder}"MTESample.p.o

Srcs =	¶
	UApplication.p ¶
	UDocument.p ¶
	UTEDocument.p ¶
	UTESample.p ¶
	TESampleGlue.a ¶
	MTESample.p
	
RezFile = TESample.r

SysLibs = 	"{Libraries}"Runtime.o ¶
			"{Libraries}"Interface.o ¶
			"{Libraries}"ObjLib.o ¶
			"{PasLib}"

	
"{ObjFolder}"MTESample.p.o		Ä ¶
		{Srcs}

"{ObjFolder}"UDocument.p.o		Ä ¶
		UDocument.inc1.p

"{ObjFolder}"UApplication.p.o	Ä ¶
		UApplication.inc1.p ¶
		UDocument.p

"{ObjFolder}"UTEDocument.p.o	Ä ¶
		UTEDocument.inc1.p ¶
		UApplication.p ¶
		UDocument.p

"{ObjFolder}"UTESample.p.o		Ä ¶
		UTESample.inc1.p ¶
		UApplication.p ¶
		UDocument.p ¶
		UTEDocument.p

# Everything below here is pretty generic, and shouldn't
# have to be modified. You can customize it by changing the
# variables above.

.p.o	Ä .p
	Echo "Compiling:     {Default}.p"
	{Pascal} {PasOpts} ¶
		-o {targDir}{default}.p.o ¶
		{depDir}{default}.p

.a.o	Ä .a
	Echo "Assembling:    {Default}.a"
	Asm -o {targDir}{default}.a.o ¶
		{depDir}{default}.a

"{ObjFolder}"	Ä :

{AppName} ÄÄ {Objs} {AppName}.make
	Echo "Linking:       {AppName}"
	Link -o {Targ} {LinkOpts} {Objs} {SysLibs} 
	SetFile {Targ} -t APPL -c kSignature -a B

{AppName} ÄÄ {RezFile} {AppName}.make
	Echo "Rezzing:       {RezFile}"
	Rez -append -o {Targ} {RezFile}

